package com.xiaobaibai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaobaibai.bo.ProductEs;
import com.xiaobaibai.entity.Product;
import com.xiaobaibai.entity.ProductEvaluation;
import com.xiaobaibai.response.ResponseFormat;
import com.xiaobaibai.units.ValidList;
import com.xiaobaibai.vo.CreateOrderItemVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-16
 */
public interface IProductService extends IService<Product> {

    public List<Product> getAllList();

    public List<Product> getProductByCategory(Integer categoryId);

    public List<Product> getProductPage(int pageNum);

    public List<String> associatedWords(String search);

    public Product getProductById(Integer productId);

    public List<ProductEs> searchProduct(String productName);

    public List<Product> getBargainProduct(Collection<Integer> collection);

    public List<Product> getProductByOrder(Collection<Integer> collection);

    public List<Product> getImageById(Collection<Integer> collection);

    public void returnStock(String orderId);

}
